import  axios  from  '../../util/axios';
export  const  login = (username)=>{
   return  axios.request({
       method:'post',
       url:'/login',
       data:{
           username
       }
   })
}

export  const  validate = (username)=>{
    return  axios.request({
        method:'get',
        url:'/validate'
    })
 }